﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;

namespace WpfBinding
{
    /// <summary>
    /// PriorityBinding.xaml 的交互逻辑
    /// </summary>
    public partial class PriorityBindingDemo : Page
    {
        public PriorityBindingDemo()
        {
            InitializeComponent();
        }
    }

    public class AsycData
    {
        private string _firstData;
        private string _secondData;
        private string _thirdData;

        public AsycData()
        { 
            
        }

        public string FirstData
        {
            get 
            {
                 
                return _firstData;
            }
            set { _firstData = value; }
        }

        public string SecondData
        {
            get
            {
                Thread.Sleep(3000);
                return _secondData;
            }
            set { _secondData = value; }
        }

        public string ThirdData
        {
            get
            {
                Thread.Sleep(5000);
                return _thirdData;
            }
            set { _thirdData = value; }
        }

    }
}
